//对外暴露配置路由(常量路由):全部用户都可以访问到的路由

export const constantRouter = [
  {
    path: "/",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登录"
    }
  },
  {
    path: "/404",
    component: () => import("@/views/404/index.vue"),
    meta: {
      title: "404"
    }
  },
  {
    path: "/order",
    component: () => import("@/views/order/index.vue"),
    meta: {
      title: "订单"
    }
  },
  {
    path: "/home",
    component: () => import("@/layout/index.vue"),
    name: "layout",
    redirect: "/home",
    meta: {
      title: "首页"
    },
    children: [
      {
        path: "/home",
        component: () => import("@/views/home/index.vue"),
        meta: {
          title: "首页",
          requiresAuth: true
        }
      },
      {
        path: "/hot",
        component: () => import("@/views/hotShowing/index.vue"),
        meta: {
          title: "热映影片",
          requiresAuth: true
        }
      },
      {
        path: "/comming",
        component: () => import("@/views/upComingFilm/index.vue"),
        meta: {
          title: "即将上映",
          requiresAuth: true
        }
      },
      {
        path: "/detail",
        component: () => import("@/components/detail/detail.vue"),
        meta: {
          title: "详情",
          requiresAuth: true
        }
      }

    ]
  }
];
export const asnycRoute = [];
